package com.example.sesata.service;

import com.example.sesata.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */

@FeignClient("seata-storage-service")
public interface StorageService {

    @PutMapping("/storage/decrease")
    CommonResult<Object> decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);

}
